package com.hsav.kcxb.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.hsav.kcxb.bean.ProvinceBean;

import java.util.ArrayList;

/**
 * Created by zhao on 2017/1/2.
 */

public class ProvinceAdapter extends BaseAdapter {
    private final Context mContext;
    private final ArrayList<ProvinceBean> mProvinceList;

    public ProvinceAdapter(Context context, ArrayList<ProvinceBean> provinceList){
        this.mContext = context;
        this.mProvinceList = provinceList;
    }
    @Override
    public int getCount() {
        if(mProvinceList!=null){
            return mProvinceList.size();
        }
        return 0;
    }

    @Override
    public Object getItem(int position) {
        if(mProvinceList!=null){
            return mProvinceList.get(position);
        }
        return null;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        return null;
    }
}
